package com.friday.dao;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface QuotationDao {

    JSONObject getQuotationById(int id);

    JSONArray getAllQuotation();

    JSONArray getAllMatchQuotation(int id,String authority);

    JSONArray getQuotationdtlById(int id);

    JSONArray getAgentQuotation(int id);

    int delQuotationById(int id);

    int delQuotationDtlById(int id);

    int addQuotation(JSONObject quotation);

    int addQuotationDtl(JSONObject quotationdtl);

    int editQuotation(JSONObject quotation);

    int changeStatus(int id,String status);

    JSONObject getQuotationForOrder(int order_id);




}
